package com.second.app.thread.reentrant.conditioncorrect;

/**
 * @author gyz
 * @date 2021/2/1 15:52
 */
public class Main {
    public static void main(String[] args) {
        try {
            ReentrantLockConfig reentrantLockConfig = new ReentrantLockConfig();
            MyThread myThread = new MyThread(reentrantLockConfig);
            myThread.start();
            Thread.sleep(5000);
            reentrantLockConfig.signal();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
